﻿#include<iostream>

using namespace std;

void show_char(char c, int n) {
	while (n--) {
		cout << c;
	}
}

int main() {
	int n;
	cout << "右下角直角三角形\n";
	cout << "行数：";
	cin >> n;

	for (int i = 1; i <= n; i++) {
		show_char(' ', n - i);
		show_char('*', i);
		cout << '\n';
	}

	cin.get();
	cin.get();
}